import { BaseEntity, Column, PrimaryColumn, PrimaryGeneratedColumn } from 'typeorm';

export abstract class YhEntity {
    @Column({
        type: 'varchar',
        name: 'remark',
        length: 255,
        comment: '备注',
    })
    remark: string;
}


export abstract class YhBaseEntity extends YhEntity {
    @PrimaryGeneratedColumn({
        type: 'int',
        name: 'id',
        comment: 'ID'
    })
    id: number;
}

